import request from '@/utils/request'

// 查询公用外链列表
export function listManageurls(query) {
  return request({
    url: '/hmk/manageurls/list',
    method: 'get',
    params: query
  })
}

// 查询公用外链详细
export function getManageurls(id) {
  return request({
    url: '/hmk/manageurls/' + id,
    method: 'get'
  })
}

// 新增公用外链
export function addManageurls(data) {
  return request({
    url: '/hmk/manageurls',
    method: 'post',
    data: data
  })
}

// 修改公用外链
export function updateManageurls(data) {
  return request({
    url: '/hmk/manageurls',
    method: 'put',
    data: data
  })
}

// 删除公用外链
export function delManageurls(id) {
  return request({
    url: '/hmk/manageurls/' + id,
    method: 'delete'
  })
}
